home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / lib / calc / help / intro < prev    next >
Text File  |  1995-07-17  |  2KB  |  56 lines

  1. Quick introduction
  2.  
  3.     This is an interactive calculator which provides for easy large
  4.     numeric calculations, but which also can be easily programmed
  5.     for difficult or long calculations.  It can accept a command line
  6.     argument, in which case it executes that single command and exits.
  7.     Otherwise, it enters interactive mode.  In this mode, it accepts
  8.     commands one at a time, processes them, and displays the answers.
  9.     In the simplest case, commands are simply expressions which are
  10.     evaluated.  For example, the following line can be input:
  11.  
  12.         3 * (4 + 1)
  13.  
  14.     and the calculator will print 15.
  15.  
  16.     The special '.' symbol (called dot), represents the result of the
  17.     last command expression, if any.  This is of great use when a series
  18.     of partial results are calculated, or when the output mode is changed
  19.     and the last result needs to be redisplayed.  For example, the above
  20.     result can be doubled by typing:
  21.  
  22.         . * 2
  23.  
  24.     and the calculator will print 30.
  25.  
  26.     For more complex calculations, variables can be used to save the
  27.     intermediate results.  For example, the result of adding 7 to the
  28.     previous result can be saved by typing:
  29.  
  30.         old = . + 7
  31.  
  32.     Functions can be used in expressions.  There are a great number of
  33.     pre-defined functions.  For example, the following will calculate
  34.     the factorial of the value of 'old':
  35.  
  36.         fact(old)
  37.  
  38.     and the calculator prints 13763753091226345046315979581580902400000000.
  39.     Notice that numbers can be very large. (There is a practical limit
  40.     of several thousand digits before calculations become too slow.)
  41.  
  42.     The calculator can calculate transcendental functions, and accept and
  43.     display numbers in real or exponential format. For example, typing:
  44.  
  45.         config("display", 50)
  46.         epsilon(1e-50)
  47.         sin(1)
  48.  
  49.     prints "~.84147098480789650665250232163029899962256306079837".
  50.  
  51.     The calculator also knows about complex numbers, so that typing:
  52.  
  53.         (2+3i) * (4-3i)
  54.  
  55.     prints "17+6i".
  56.